package com.base.service.workflow.entity;

import com.base.core.framework.sql.entity.BaseV1Ext;
import com.gitee.magic.jdbc.persistence.annotation.Entity;
import com.gitee.magic.jdbc.persistence.annotation.Table;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.ColumnDef;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.Indexes;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.TableDef;
import com.gitee.magic.jdbc.persistence.source.jdbc.script.annotations.indexes.Normal;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author start 
 */
@Getter@Setter@ToString
@Entity("sequenceFlow")
@Table("wor_sequence_flow")
@TableDef(comment = "流程顺序流")
public class SequenceFlowDO extends BaseV1Ext {

	private static final long serialVersionUID = 1L;
	
	public SequenceFlowDO(){}

	@ColumnDef(comment = "名称")
	private String label;

	@ColumnDef(indexes = @Indexes(normal = @Normal),comment = "流程部署ID")
    private Long deploymentId;

	@ColumnDef(indexes = @Indexes(normal = @Normal),comment = "任务源ID")
    private Long sourceRefId;

	@ColumnDef(indexes = @Indexes(normal = @Normal),comment = "任务目标ID")
    private Long targetRefId;

	@ColumnDef(comment = "表达式",isNull = true)
    private String expression;

}
